<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../lib/animate/animatenew.min.css" />
    <style>

        .box{
            width: 100px;
            height: 100px;
            background-color: wheat;
        }
    </style>
</head>
<body>
    

    <div id="app">
        <button @click="flag =!flag">点我</button>
        <transition enter-active-class="animate__animated animate__fadeInLeft" leave-active-class="animate__animated animate__backOutRight">
            <div class="box" v-show="flag"></div>
        </transition>
    </div>

    <script src="../lib/Vue/vue.js"></script>
    <script>

        var vm = new Vue({

            el: '#app',
            data: {
                flag: true
            }

        })
    </script>
</body>
</html>